package com.cx.config;

public class RequestResult {
    /**
     * 状态码  1：成功  2：失败   ......
     */
    private Integer code;
    /**
     * 状态描述信息,如成功  或  失败
     */
    private String message;
    /**
     * 要返回的对象
     */
    private Object result;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getResult() {
        return result;
    }

    public void setResult(Object result) {
        this.result = result;
    }

    public RequestResult() {
    }

    public RequestResult(Integer code, String message, Object result) {
        this.code = code;
        this.message = message;
        this.result = result;
    }
}
